package com.prs.crm.context;

import java.util.HashMap;
import java.util.Map;

import com.prs.crm.domain.hr.PayrollBill;
import com.prs.crm.domain.hr.Person;

public class PersonPayroll {
	private Integer id;
	private Person person;
	private Map<String,PayrollBill> payrollBills;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public void setPerson(Person person) {
		this.person = person;
	}
	public Person getPerson() {
		return person;
	}
	public void setPayrollBills(Map<String,PayrollBill> payrollBills) {
		this.payrollBills = payrollBills;
	}
	public Map<String,PayrollBill> getPayrollBills() {
		return payrollBills;
	}	
	
	public void addPayrollBill(PayrollBill bill) {
		if(payrollBills == null) {
			payrollBills = new HashMap<String,PayrollBill>();
		}
		payrollBills.put(bill.getItem(), bill);
	}
}
